#include <stdio.h>
#include <stdlib.h>

#include <readline/history.h>
#include <readline/readline.h>

int
main (void)
{
  char *newline;
  while ((newline = readline (">> ")) != NULL)
    {
      fprintf (stderr, "<< %s\n", newline);

      free (newline);
    }
  return 0;
}
